package com.dream.enums;

public enum ErrorEnums {

    LIMIT_ERROR(10001, "访问过于频繁，请稍后再试"),
    REPEAT_ERROR(10002, "请勿重复提交"),
    SING_MISS_PARAM_ERROR(10003, "缺少必要的签名参数"),
    SING_APPID_ERROR(10004, "非法 appId"),
    EXPIRATION_TIME_ERROR(10005, "请求时间过期"),
    REQUEST_BODY_ERROR(10006, "请求体错误"),
    SIGN_ERROR(10007, "签名验证失败");

    /**
     * 状态码
     */
    private int code;

    /**
     * 消息
     */
    private String message;

    ErrorEnums(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
